package com.fqgj.sentry.manage.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.sentry.manage.dao.McUserDao;
import com.fqgj.sentry.manage.entity.McUserEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
* User: ykpbean
* Date: 2017-07-12
* Time: 14:21:02.944
*/

@Repository
public class McUserDaoImpl extends AbstractBaseMapper<McUserEntity> implements McUserDao {

    @Override
    public McUserEntity selectByAccount(String account) {
        return this.getSqlSession().selectOne(this.getStatement(".selectByAccount"),account);
    }

    @Override
    public List<McUserEntity> selectUserList(HashMap<String,Object> param) {
        return this.getSqlSession().selectList(this.getStatement(".selectUserList"),param);
    }

}